package com.bosch.in.rtp1.ept.model.technical;

import java.util.List;

/**
 * Class encapsulates all search parameters, dynamic sql statement or search condition.
 * @author TPR1HC
 *
 */
public class SearchCriteria {
	/**
	 * search condition string which include all place holders for search values user specifies.
	 */
	private String searchCondition;
	
	/**
	 * Dynamic sql string from properties file and replace for dynamic part.
	 */
	private String sqlQuery;
	
	/**
	 * Parameter values, the number of values must be equal with 
	 * the number of place holder in search condition
	 */
	private List<Object> parameterValues;
	
	private String orderBy;
	
	/**
	 * Default constructor
	 */
	public SearchCriteria() {}
	
	/**
	 * 
	 * @param searchConString
	 */
	public SearchCriteria(String searchConString) {
		this.searchCondition = searchConString;
	}
	
	public String getSearchCondition() {
		return searchCondition;
	}

	public void setSearchCondition(String searchCondition) {
		this.searchCondition = searchCondition;
	}

	public List<Object> getParameterValues() {
		return parameterValues;
	}

	public void setParameterValues(List<Object> parameterValues) {
		this.parameterValues = parameterValues;
	}

	public String getSqlQuery() {
		return sqlQuery;
	}

	public void setSqlQuery(String sqlQuery) {
		this.sqlQuery = sqlQuery;
	}

	public String getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
}
